--------------------------------------------------------------------------------
--  @file:  App.lua
-- 	Time: 	2019-09-26 17:03:32
-- 	Author:	KJOMOCGTEXG2ERC
--	Desc:	
--------------------------------------------------------------------------------
local CURRENT_MODULE_NAME = ...

-- 应用类
local App = class("App")

function App:ctor()
	me.app = self
end

-- 启动
function App:Start()
	local obj = GameObject.CreatePrimitive(0)
	obj.name = "my"

	self.myTarget = GameObject.Find("Target").transform
	self.myTarget.position = Vector3(0,0,0)

	-- 初始化框架
	me.framework = me.Framework.new()
	me.modules = {}
	me.cache = {}
	
	-- 函数注册
	LuaHelper.RegisterFunc(LuaEventDefine.UPDATE, 		handler(self, self.Update))
end

-- 更新
function App:Update(dt)
	-- print(">>App:Update>>"..dt)
	-- if me.framework then
	-- 	me.framework:Update(dt)
	-- 	me.framework:FixedUpdate(dt)
	-- end
end

return App